<div class="breadcrumbs" id="breadcrumbs">
	<ul class="breadcrumb">
		<li><i class="icon-home home-icon"></i><a href="#">Home</a></li>
		<li><a href="<?php echo Yii::app()->controller->createUrl('index'); ?>">Departments</a></li>
		<li><a href="<?php Rights::getBaseUrl(); ?>">View</a></li>
		<li class="current"><?php echo $model->name; ?></li>
	</ul>
	<script type="text/javascript">
		try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
	</script>
</div>
<div class="col-xs-12">
	<div class="page-content">
		<div class="page-header">
			<div class="clearfix">
				<div class="pull-left">
					<h1>
						<h1>View Departments <?php echo $model->name; ?></h1>
					</h1>
				</div>
			</div>
		</div>
		
		<div class="col-xs-12">
			<?php 
			$this->beginWidget('zii.widgets.CPortlet', array(
				'htmlOptions'=>array(
					'class'=>''
				)
			));
			$this->widget('bootstrap.widgets.TbMenu', array(
				'type'=>'pills',
				'items'=>array(
					array('label'=>'Create', 'icon'=>'icon-plus', 'url'=>Yii::app()->controller->createUrl('create'), 'linkOptions'=>array()),
							array('label'=>'List', 'icon'=>'icon-th-list', 'url'=>Yii::app()->controller->createUrl('index'), 'linkOptions'=>array()),
							array('label'=>'Update', 'icon'=>'icon-edit', 'url'=>Yii::app()->controller->createUrl('update',array('id'=>$model->id)), 'linkOptions'=>array()),
					//array('label'=>'Search', 'icon'=>'icon-search', 'url'=>'#', 'linkOptions'=>array('class'=>'search-button')),
					array('label'=>'Print', 'icon'=>'icon-print', 'url'=>'javascript:void(0);return false', 'linkOptions'=>array('onclick'=>'printDiv();return false;')),

			)));
			$this->endWidget();
			?>
			<div class='printableArea'>

			<?php $this->widget('bootstrap.widgets.TbDetailView',array(
				'data'=>$model,
				'attributes'=>array(
					// 'id',
					'department_code',
					'name',
					'note',
				),
			)); ?>
			</div>
		</div><!-- /span -->
		
	</div>
</div>

<style type="text/css" media="print">
body {visibility:hidden;}
.printableArea{visibility:visible;} 
</style>
<script type="text/javascript">
function printDiv()
{

window.print();

}
</script>
